package com.es.gateway.sdk.app.non_mainland_cn_h5;

import com.es.gateway.sdk.util.GsonUtil;
import lombok.Data;

@Data
public class NonMainlandCnH5GetAuthUrlResponse {
    /**
     * 请求ID
     */
    private String requestId;
    /**
     * 业务ID(和初始化传入的一致)
     */
    private String bizId;
    /**
     * 错误码
     */
    private String code;
    /**
     * 结果描述
     */
    private String msg;
    /**
     * 认证链接
     */
    private String url;

    public String toJsonStr() {
        return GsonUtil.getAllJson().toJson(this);
    }

    public static NonMainlandCnH5GetAuthUrlResponse fromJsonStr(String jsonStr) {
        return GsonUtil.getAllJson().fromJson(jsonStr, NonMainlandCnH5GetAuthUrlResponse.class);
    }
}
